from logic.GetData import crawl_bybit_datas
from utils.cacular_date import cacular_date, getEveryDay
import datetime
from logic.need4Xy import NeedForFeature


symbol="ETH/USDT"
date_start="2017-12-01"
date_yestoday = cacular_date(datetime.date.today(), -1)
limit_count=730
# crawl_bybit_datas(symbol=symbol, start_time=date_start, end_time=date_yestoday, limit_count=limit_count)
date_list = getEveryDay(date_start, date_yestoday)
currency = 'ETHUSDT'
need = NeedForFeature(currency=currency, date_list=date_list)
need.get_df(currency=currency, date_list=date_list)
need.getXy(date_list=date_list)
